#ifndef _TEST_CONFIG_H_
#define _TEST_CONFIG_H_

#include <algorithm>
#include <string>

#cmakedefine SFCGAL_TEST_DIRECTORY "@SFCGAL_TEST_DIRECTORY@"

inline std::string random_string( size_t length = 12 )
{
    auto randchar = []() -> char
    {
        const char charset[] =
        "0123456789"
        "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        "abcdefghijklmnopqrstuvwxyz";
        const size_t max_index = (sizeof(charset) - 1);
        return charset[ rand() % max_index ];
    };
    std::string str(length,0);
    std::generate_n( str.begin(), length, randchar );
    return str;
}


#endif
